﻿using SheepStorage.Domain.Entity;
using SheepStorage.Repository.Interface;
using SheepStorage.Service.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SheepStorage.Service.DataImp
{
    /// <summary>
    /// 提示报表  待配提示  首次妊检提示  分娩提示 
    /// </summary>
    public class PromptService: IPromptService
    {

        /// <summary>
        /// 提示报表
        /// </summary>
       private readonly  IBaseRepository<PromptModel> PromptbaseRepository;


        public PromptService(IBaseRepository<PromptModel> PromptbaseRepository)
        {
           this. PromptbaseRepository = PromptbaseRepository;
        }




        /// <summary>
        /// 显示提示报表信息
        /// </summary>
        /// <returns></returns>
        public List<PromptModel> GetPromptModels()
        {
            var promptModels = PromptbaseRepository.GetAll().ToList();
            return promptModels;
        }






    }
}
